import { post } from '../http'

/**
 * @description: 商户数据概要
 * @param data
 * @return Promise
 */
export const getEnterpriseBriefInfo = (data) => post({ url: '/enterprise/briefInfo', data })

/**
 * @description: 查询商户信息详情
 * @param data
 * @return Promise
 */
export const getEnterpriseDetail = (data) => post({ url: '/enterprise/detail', data })

/**
 * @description: 保存商户logo配置
 * @param data
 * @return Promise
 */
export const saveLogo = (data) => post({ url: '/enterprise/savelogo', data })

/**
 * @description: 保存商户信息
 * @param data
 * @return Promise
 */
export const saveEnterprise = (data) => post({ url: '/enterprise/save', data })

// 查询充值记录
export const getRechargeRecord = (data) => post({ url: '/accountPayRecord/getList', data })

// 申请自动签署
export const applyAutoSign = (data) =>
  post({
    url: '/ident/companySelfSignAuth',
    data,
  })

// 修改tbox是否自动发送短信
export const getUpdateTbox = (data) => post({ url: '/enterprise/updateTbox', data })
